<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8">
		<title>Running Models</title>
	</head>
	<body>
		<h1>Running Models</h1>
		<p>
		This requires that the model contains a system specification.
		Models with <a href="../language/SyntaxTests.html">test primitives</a> can also be <a href="../simulating_models/run_tests.html">run as POOSL Tests</a>.
		</p>
		
		<h2>Launch</h2>
		<p>
		Follow one of these steps:
		<ul>
			<li>Right click in an open editor, or on a .poosl file in the Project Explorer. Select "Run As" -> "POOSL Simulation".</li>
			<img src="img/right_click_run.png"/>
			<li>If the POOSL Model is opened in the editor, click on the small arrow next to the Run button and select "Run as..." -> "POOSL Simulation".</li>
			<li>Click on the small arrow next to the Run button, and select the POOSL Model (if present).</li>
			<img src="img/run_previous_launch.png"/>
			<li>Click on the Run button, or use keyboard shortcut &lt;CTRL&gt;-&lt;F11>, to run the most recently launched simulation.</li> 
		</ul>
		The launch configuration will be automatically created. You can change the launch settings in the <a href="launch_configuration.html#change_settings">launch configuration</a>.
		</p>

		<h2>Monitor</h2>
		<p>
		The progress of the simulation can be monitored in the Console view at the bottom of the screen. For interactive simulation, use <a href="debug.html">Debug a POOSL Model</a> instead.
		</p>
		
		<h2>Stop</h2>
		<p>
		To stop a running simulation, click on the red stop button (red square icon) in the Console view at the bottom of the screen.
		</p>
		
		<h2>Advanced features</h2>
		<p>
		<ul>
			<li><a href="launch_configuration.html#setting_seed">Setting a seed for resolving non-determinism</a>
			<li><a href="../export_functionality/export.html#rotalumis">Run simulator from the command-line</a>
		</ul>
		</p>
	</body>
</html>